package io.github.harmonly.service;

import io.github.harmonly.entity.User;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {

    boolean auth(HttpSession session, String account, String password);

    boolean addUser(User user);

    User getUser(int uid);

    List<User> getUsers();

    List<User> getUsersByKeyWord(String keyword);

    boolean deleteUser(int uid);

    boolean editUser(User user);
}
